package com.slofzx.nuoda.sso.dto;


import com.slofzx.nuoda.common.dto.PageDTO;

/**
 * 单点登录应用信息数据传递类
 *
 * @author nuoda
 * @since 2023-11-09 10:44:07
 */
public class SsoAppInfoDTO extends PageDTO {
    private static final long serialVersionUID = 144472808116671969L;
    /**
     * 数据id
     */
    private String id;
    /**
     * 应用名称
     */
    private String name;
    /**
     * 秘钥
     */
    private String secret;
    /**
     * ip白名单
     */
    private String allowIps;
    /**
     * 当前状态
     */
    private boolean disabled;
    /**
     * 备注信息
     */
    private String remark;

    /**
     * 客户端ip
     */
    private String clientIp;

    /**
     * 登录id
     */
    private String loginId;


    public SsoAppInfoDTO() {
        //默认查询不分页
        this.pageSize = PageDTO.ALL;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getAllowIps() {
        return allowIps;
    }

    public void setAllowIps(String allowIps) {
        this.allowIps = allowIps;
    }

    public boolean getDisabled() {
        return disabled;
    }


    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    @Override
    public String toString() {
        return "SsoAppInfoDTO{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", secret='" + secret + '\'' +
                ", allowIps='" + allowIps + '\'' +
                ", disabled=" + disabled +
                ", remark='" + remark + '\'' +
                ", clientIp='" + clientIp + '\'' +
                ", loginId='" + loginId + '\'' +
                ", pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", count=" + count +
                '}';
    }
}
